/*
 * Copyright (c) 2024 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

export class CommonConstants{
  // space
  static readonly SPACE_2: number = 2;
  static readonly SPACE_4: number = 4;
  static readonly SPACE_6: number = 6;
  static readonly SPACE_8: number = 8;
  static readonly SPACE_10: number = 10;
  static readonly SPACE_12: number = 12;
  static readonly SPACE_14: number = 14;
  static readonly SPACE_16: number = 16;
  static readonly SPACE_18: number = 18;
  static readonly SPACE_20: number = 20;
  static readonly SPACE_30: number = 30;

  static readonly MARGIN_12:number = 12;
  static readonly MARGIN_10:number = 10;
  static readonly MARGIN_8:number = 8;
  static readonly MARGIN_6:number = 6;
  static readonly MARGIN_14:number = 14;
  static readonly MARGIN_16:number = 16;
  static readonly MARGIN_18:number = 18;
  static readonly MARGIN_20:number = 20;

  static readonly RADIUS_3:number = 3;
  static readonly RADIUS_4:number = 4;
  static readonly RADIUS_10:number = 10;

  static readonly TEXT_SIZE_14:number = 14;
  static readonly TEXT_SIZE_12:number = 12;
  static readonly TEXT_SIZE_13:number = 13;
  static readonly TEXT_SIZE_9:number = 9;
  static readonly TEXT_SIZE_10:number = 10;
  static readonly TEXT_SIZE_16:number = 16;
  static readonly TEXT_SIZE_18:number = 18;


  /**
   * Limit picker num
   */
  static readonly LIMIT_PICKER_NUM = 12;

  /**
   * Camera preview width
   */
  static readonly PREVIEW_WIDTH: number = 1920;

  /**
   * Camera preview height
   */
  static readonly PREVIEW_HEIGHT: number = 1080;

  /**
   * Grid num two
   */
  static readonly GRID_NUM_TWO = "1fr 1fr";

  /**
   * Grid num three
   */
  static readonly GRID_NUM_THREE = "1fr 1fr 1fr";

  /**
   * Grid num four
   */
  static readonly GRID_NUM_FOUR = "1fr 1fr 1fr 1fr";

  /**
   * Breakpoint sm
   */
  static readonly BREAKPOINT_SM: string = 'sm';

  /**
   * Breakpoint md
   */
  static readonly BREAKPOINT_MD: string = 'md';

  /**
   * Breakpoint lg
   */
  static readonly BREAKPOINT_LG: string = 'lg';

  /**
   * Breakpoint range sm
   */
  static readonly RANGE_SM: string = '(320vp<=width<600vp)';

  /**
   * Breakpoint range md
   */
  static readonly RANGE_MD: string = '(600vp<=width<840vp)';

  /**
   * Breakpoint range lg
   */
  static readonly RANGE_LG: string = '(840vp<=width)';

  /**
   * Breakpoint value sm/md/lg
   */

  static readonly BREAKPOINT_VALUE: Array<string> = ['320vp', '600vp', '840vp'];

  /**
   * Window status
   */
  static readonly WINDOW_STATUS:string = 'status';

  /**
   * Window navigation
   */
  static readonly WINDOW_NAVIGATION:string = 'navigation';

  /**
   * AppStorage key breakpoint
   */
  static readonly BREAKPOINT_NAME: string = 'breakpoint';
  static readonly SET_FONT_SIZE: string = 'setFontSize';
  static readonly FONT_SIZE_LIST={
    小:100,
    中:130,
    大:160,
    超大:180,
  };

  /**
   * AppStorage key cloud picture path
   */
  static readonly KEY_PICTURE_PATHS: string = 'paths';

  /**
   * File buffer size
   */
  static readonly FILE_BUFFER_SIZE: number = 4096;
}